package com.jdk.demo.file;

import java.io.File;
import java.util.Arrays;

public class Test {

	public static void main(String[] args) {
		File f = new File("E:/workspace4/jdkdemo/doc/io/nio/1半包粘包.txt");
		System.out.println(f.getAbsolutePath());
		File f2 = new File("E:/workspace4/jdkdemo/doc");
		Arrays.stream(f2.listFiles()).forEach(System.out::println);
		System.out.println(Arrays.toString(File.listRoots()));
	}

}
